package com.question.business.dict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.question.business.dict.entity.Dict;
import com.question.business.dict.model.ao.DictAddAO;
import com.question.business.dict.model.vo.DictDetailVO;

import java.util.List;

/**
 * 字典服务
 *
 * @author star
 * @since 2023-09-07
 */
public interface IDictService extends IService<Dict> {

    /**
     * 字典分页查询
     *
     * @param typeId 类型ID
     * @return List<DictDetailVO> 响应参数
     */
    List<DictDetailVO> queryDictList(String typeId);

    /**
     * 字典新增数据
     *
     * @param typeId 类型ID
     * @param ao     请求参数
     * @return List<DictAddAO> 响应参数
     */
    void addDict(String typeId, List<DictAddAO> ao);

}